package com.lagou.homework4.no1;


public class Student implements java.io.Serializable{
    private static final long serialVersionUID = -668594153114650979L;
    private int id;//学号（唯一）
    private String name;//姓名
    private int age;//年龄
    //生成无参构造器
    public Student() {
    }

    //生成有参构造器
    public Student(int id, String name, int age) {
        this.id = id;
        this.name = name;
        this.age = age;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }
}
